package com.rosense.client.rpc;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * @author 李岩飞
 * @email eliyanfei@126.com	
 * 2017年7月31日 上午9:48:43
 * 
 */
public interface IRPCServer<T extends RPCBean> extends Remote {
	/**
	 * 开始事件
	 * @return
	 * @throws RemoteException
	 */
	public T get() throws RemoteException;

	public RpcJarBean getJar() throws RemoteException;;

	/**
	 * 结束事件
	 * @param bean
	 * @throws RemoteException
	 */
	public void set(T bean) throws RemoteException;

	public void bind(String name, int port, String host) throws Exception;

	public void bind(String name, int port) throws Exception;
}